#include"ThreadPool.hpp"


using namespace  ThreadPoolMoudle;


int main()
{
    ThreadPool<task>* ser=ThreadPool<task>::GetInstance();

    int cur=10;
    while(cur)
    {
         ser->Enqueue(Push);
         cur--;
         sleep(1);
    }

    ser->Stop();
    ser->Wait();

    return 0;
}